Field | Description | Type |
id | Discount ID | integer |
name | Discount name | string |
time_from | Discount start time HH:mm | string |
time_to | Discount expiration time HH:mm | string |
discount | Discount percentage | float |
discount_type | Discount type: 0 – regular, 1 – cumulative | integer |
type_sale | Accumulation type: 1 – by check, 2 – by client | integer |
cnt | Amount of accumulation to receive a discount | integer |
days_of_week | Days of the week, bitmask, for all days - 127 | integer |
client_category_id | ID of the category of clients for which the discount | integer |
clients_only | 1 – for all regular customers, 2 – for birthdays | integer |
days_cnt | Number of days the birthday discount is valid | integer |
department_id | ID of the department where the discount is applied | integer |
assort_id | ID of the product that is subject to the discount | integer |
ref_assort_id | Product ID for accumulation | integer |
grp_id | ID of the assortment group for which the discount applies | integer |
ref_grp_id | Assortment group ID for accumulation | integer |
summa_from | Check amount from which the discount is valid | float |
summa_to | Check amount up to which the discount is valid | float |